<template>
  <div>
    <!-- 此处监听的click事件不是原生的，是mybutton组件自定义的click事件名称 -->
    <my-button mytype="primary" @click="handleClick" mydisabled icon="icon-naozhong">主要按钮</my-button>
    <my-button mytype="success">成功按钮</my-button>
    <my-button mytype="info">信息按钮</my-button>
    <my-button mytype="waring">警告按钮</my-button>
    <my-button mytype="danger" round>危险按钮</my-button>
  </div>
</template>
<script>
// import MyButton from '@/components/button/src/button'
export default {
  // components: {
  //   MyButton
  // },
  methods: {
    handleClick () {
      console.log('click')
    }
  }
}
</script>
